From b465f48e34622c9b2f8cb94725e531c61018559b Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Wed, 19 Aug 2020 09:31:58 +0200 Subject: [PATCH 1/2] Dependency Upgrade * dependencies upgraded to new namespace @nativescript --- src/index.d.ts | 2 +- src/orientation.js | 12 ++++++------ src/package.json | 10 ++++++---- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index f851501..786c438 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,4 +1,4 @@ -import { Page } from "tns-core-modules/ui/page/page"; +import { Page } from "@nativescript/core"; export interface OrientationApplierOptions { object?: Page, diff --git a/src/orientation.js b/src/orientation.js index f2e746a..4168042 100644 --- a/src/orientation.js +++ b/src/orientation.js @@ -12,12 +12,12 @@ /* jshint camelcase: false */ /* global UIDevice, UIDeviceOrientation, UIView, getElementsByTagName, android */ -var application = require('tns-core-modules/application'); -var view = require('tns-core-modules/ui/core/view'); -var viewBase = require('tns-core-modules/ui/core/view-base'); -var enums = require('tns-core-modules/ui/enums'); -var frame = require('tns-core-modules/ui/frame'); -var Page = require('tns-core-modules/ui/page').Page; +var application = require('@nativescript/core/application'); +var view = require('@nativescript/core/ui/core/view'); +var viewBase = require('@nativescript/core/ui/core/view-base'); +var enums = require('@nativescript/core/ui/enums'); +var frame = require('@nativescript/core/ui/frame'); +var Page = require('@nativescript/core/ui/page').Page; // Load the helper plugins require('nativescript-globalevents'); diff --git a/src/package.json b/src/package.json index 69c98a1..2a4633d 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-orientation", - "version": "2.2.4", + "version": "2.2.6", "description": "A NativeScript plugin to deal with Declarative UI and Screen Orientation", "main": "orientation", "typings": "index.d.ts", @@ -25,6 +25,9 @@ "nativescript-globalevents": "latest", "nativescript-dom": "latest" }, + "devDependencies": { + "@nativescript/core": "rc" + }, "keywords": [ "NativeScript", "orientation", @@ -81,9 +84,8 @@ "url": "https://proplugins.org/proplugins/nativescript-orientation/issues" }, "scripts": { - "postinstall": "node postinstall.js || echo \"ignore\"" + "postinstall": "node postinstall.js || echo \"ignore\"" }, "homepage": "https://proplugins.org/proplugins/nativescript-orientation", - "readmeFilename": "README.md", - "devDependencies": {} + "readmeFilename": "README.md" } From 9ab23046a64f62e53bbf94268370d51bf3c2a29e Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Wed, 19 Aug 2020 09:39:49 +0200 Subject: [PATCH 2/2] Dependency Upgrade * fixed version --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index 2a4633d..fe2fac2 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "nativescript-orientation", - "version": "2.2.6", + "version": "2.2.4", "description": "A NativeScript plugin to deal with Declarative UI and Screen Orientation", "main": "orientation", "typings": "index.d.ts",